bgo#675421 - Set the wm_role on GtkFileChooserDialog
authorFederico Mena Quintero <federico@gnome.org>
Mon, 7 May 2012 20:42:32 +0000 (15:42 -0500)
committerFederico Mena Quintero <federico@gnome.org>
Mon, 7 May 2012 20:42:32 +0000 (15:42 -0500)
The window's role is 'GtkFileChooserDialog', so that window managers can match it
for positioning.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
gtk/gtkfilechooserdialog.c

index 1b62486272ecb3835bf552e7f43f3958588e442c..c120b9c98f60e1b68411ef977ab783333536b621 100644 (file)
@@ -257,6 +257,8 @@ gtk_file_chooser_dialog_init (GtkFileChooserDialog *dialog)
   gtk_box_set_spacing (GTK_BOX (content_area), 2); /* 2 * 5 + 2 = 12 */
   gtk_container_set_border_width (GTK_CONTAINER (action_area), 5);
 
+  gtk_window_set_role (GTK_WINDOW (dialog), "GtkFileChooserDialog");
+
   /* We do a signal connection here rather than overriding the method in
    * class_init because GtkDialog::response is a RUN_LAST signal.  We want *our*
    * handler to be run *first*, regardless of whether the user installs response